Go Back   Pligg CMS Forum > Pligg Help > Customization Assistance

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-04-2008, 09:44 AM
micxuy's Avatar
Casual Pligger
 
Join Date: May 2007
Posts: 89
Thanks: 2
Thanked 3 Times in 3 Posts
Cant use OPenx Ads with Pligg

Hi;

I just tried to add local code of Openx (PhpAdnews) into PLiff at side bar but it shows the weird error (i ut it over the side bar comments), if put below then it is fine (seems like)

Any ideas? Thank you
Reply With Quote
  #2 (permalink)  
Old 07-04-2008, 10:18 AM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,399
Thanks: 171
Thanked 440 Times in 279 Posts
First of all the software you are using is called PLIGG not Plidd or PLiff. Secondly without knowing what the error is, it's impossible to know how to help you.. Are we just supposed to guess?
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #3 (permalink)  
Old 07-05-2008, 08:36 AM
New Pligger
Pligg Version: 9.9
Pligg Template: default
 
Join Date: Nov 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
I ran into the same issue. The error was clickurl function does not exist I believe.

Try using the literal tag {literal}{/literal} around the phpadsnew/openads/openx code.
Reply With Quote
  #4 (permalink)  
Old 07-05-2008, 08:40 AM
micxuy's Avatar
Casual Pligger
 
Join Date: May 2007
Posts: 89
Thanks: 2
Thanked 3 Times in 3 Posts
Sorry my keyboard is messed up :( Yeah now its work thank you
Reply With Quote
  #5 (permalink)  
Old 07-06-2008, 02:19 PM
micxuy's Avatar
Casual Pligger
 
Join Date: May 2007
Posts: 89
Thanks: 2
Thanked 3 Times in 3 Posts
Well if i used Javascript then it is fine, but if I use local mode then i have this error

Table 'ad.pligg_comments' doesn't exist

I dont know why ? Anyone can help me? Cause use javascript is very slow
Reply With Quote
  #6 (permalink)  
Old 07-06-2008, 07:09 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,399
Thanks: 171
Thanked 440 Times in 279 Posts
Quote:
Originally Posted by micxuy View Post
Well if i used Javascript then it is fine, but if I use local mode then i have this error

Table 'ad.pligg_comments' doesn't exist

I dont know why ? Anyone can help me? Cause use javascript is very slow
Contact the developers of OpenAds...
This is not a Pligg problem...
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #7 (permalink)  
Old 07-06-2008, 07:47 PM
micxuy's Avatar
Casual Pligger
 
Join Date: May 2007
Posts: 89
Thanks: 2
Thanked 3 Times in 3 Posts
Well I know why now (I guess). It isnt the OpenX's problem, because if i put the ad block under the comment block then very thing is great. I think there has to be something with the sidebar_comments.php; the query from database
Reply With Quote
  #8 (permalink)  
Old 07-06-2008, 07:58 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,399
Thanks: 171
Thanked 440 Times in 279 Posts
Quote:
Originally Posted by micxuy View Post
Well I know why now (I guess). It isnt the OpenX's problem, because if i put the ad block under the comment block then very thing is great. I think there has to be something with the sidebar_comments.php; the query from database
Well what is the code you are trying to put in? We can't possible provide you help without seeing the code.
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #9 (permalink)  
Old 07-07-2008, 05:23 AM
New Pligger
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

When you are using a "Local Mode" ad tag from OpenX, you are basically placing PHP code into your website software, like Pligg. Placing PHP code within another software can have unkown side-effects as you have to be careful where and how you place such code.

In this case, the OpenX code is connecting to your OpenX database to know what banner to display. After the code, Pligg is connecting to its own database again. However, OpenX and Pligg seem to be using the same variable/object name to store the database connection information, so after OpenX connects and displays the banner you must reset the Pligg database connection by telling it what database name and user to use.

Hope this helps,
Arlen Coupland
OpenX
Reply With Quote
  #10 (permalink)  
Old 07-07-2008, 09:14 AM
micxuy's Avatar
Casual Pligger
 
Join Date: May 2007
Posts: 89
Thanks: 2
Thanked 3 Times in 3 Posts
Thank you , and i did try, i changed like ".table_comments." to pligg_comments but no luck.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Pligg integration with SMF Forum autoinc Modification Tutorials 64 05-19-2008 02:22 AM


Search Engine Friendly URLs by vBSEO 3.2.0