PopUpNewsModule

Hey, I can’t see the attached files. Can you help me?

gianluca311

Hey, simpilot has removed these downloads due to other people turning his freeware add-ons into payware, so simpilot will bring them back up on the weekend when he gets his lisciene for his free add-ons. so no one woundln’t steal his work.

protect them from being sold by other individuals

Will this also prevent them being installed for individuals by other individuals as part of a paid setup?

Not directly. What I do not want to see is someone selling a service to install phpvms for $1.00 but the cost being $2.00 if you install one of the modules I have written (some with help of others). There is to be no profit made from the use of the modules in any way. My intentions were to share with the community that has shared with me when I wrote these. If your cost to do an install is $xx.xx then it needs to be $xx.xx if you are including modules written by me.

end soapbox speech

Ah ok. Im not doing that but I agree

Files attached in first post of thread.

Files attached in first post of thread.

I’m having issues with this module ever since I upgraded to rev920. If you click on a news post on the front page it only shows a blank white screen. On the admin side you can edit the news and you can see it just fine but you can not delete it. Any ideas on how to troubleshoot this?

Thanks,

Keith

I will look at it this evening - I am still on 917 on my local and it seems to be working. I will upgrade to 920 and see what I get.

I will look at it this evening - I am still on 917 on my local and it seems to be working. I will upgrade to 920 and see what I get.

Thanks. The last one I was on before I upgraded was rev898 which was working. Yeah, I was a few behind.

Keith

Keith,

I updated the code in,

PopUpNews.php

PopUpNewsData.Class.php

The template files are not changed so if you already have them skined you should be good to go. I have it working on ver 921 on my development server. I am not getting the blank page or the /user_array/ errors.

If you are updating be careful to not overwrite your .tpl files if you have skinned to your site, they have not changed but are included for new installs.

Get The Code

1 Like

That worked…thank you so much.

Keith

Nevermind, I got it working!

hey dave, i got this error when i am veiwing a news

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘PopUpNews::popupnewsitem’ was given in /home/highva/public_html/core/classes/MainController.class.php on line 218

go up two posts

thank you simpilot!

i got it working fine !

Now my question, when i add news the news display both on front page and on the sidebar how i can make it to display only on sidebar and configure a brand new front page without the news ?

thank you simpilot!

i got it working fine !

Now my question, when i add news the news display both on front page and on the sidebar how i can make it to display only on sidebar and configure a brand new front page without the news ?

Remove the

MainController::Run('News', newsfront, 5)

From the template

Getting an error:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘PopUpNews::index’ was given in /core/classes/MainController.class.php on line 218

Tried reuploading the files which didn’t help.

Getting an error:Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘PopUpNews::index’ was given in /core/classes/MainController.class.php on line 218

Tried reuploading the files which didn’t help.

Did you try the updated files up about 5 posts? Let me know how you make out.

Did you try the updated files up about 5 posts? Let me know how you make out.

Oh I see, didn’t notice those - was just downloading the one from the first post.

Thanks

Thanks for the addon. I will install later on today.

Great addon, works perfectly for what I need. Just one question what would the correct code be to diplay the first few sentences of the news item?

Great addon, works perfectly for what I need. Just one question what would the correct code be to diplay the first few sentences of the news item?

you can use the substr function from php

<?php echo substr($yourvariable, 0, 50); ?>

Will output the first 50, well actually 51 characters of your variable. you are telling it to start at character 0 and end at character 50. you can start and stop it where ever you would like. Hope this helps.