Webmastersite.net
Register Log In

javascript export

Comments on javascript export

hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted Aug 27, 2008 - 7:44 PM:

I have followed the instructions in the manual regarding javascript exports - scripts.webmastersite.net/w.../javascript-export-76.html but seem to be having some trouble.

I want a list of only 1 type of link. If I understand correctly the link should be:


exporter.php?number[1]=10&field[1]=time&ascdesc[1]=descending&type[1]=links&thecondition=type='speciallinks'


but it won't work. I have tried to load the link directly by removing the end from &thecondition on and I get a list of links so that part works, but trying to load the link as I have it above results in -

Fatal error: Cannot use assign-op operators with overloaded objects nor string offsets in /html/portal/includes/templatefunctions.php on line 408
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 28, 2008 - 5:00 PM:

You forgot the array index for thecondition. After that there's an error relating to the quotations though, I'll have to add a stripslashes.
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted Aug 29, 2008 - 12:33 PM:

Paul wrote:
You forgot the array index for thecondition.


Can you please give an example of how the link should look? Thanks.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 30, 2008 - 2:51 PM:

thecondition= ---> thecondition[1]=
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted Sep 05, 2008 - 7:22 PM:

The reason I wanted this js export to work is so I could pull the information from the affiliate code field I had created onto another page. Unfortunately, instead of displaying the rendered html I'm getting the actual code.

For example:
I've added the following export to my page

<script language="javascript" src="http://highaspirations.com/portal/exporter.php?number[1]=1&field[1]=time&ascdesc[1]=descending&type[1]=links&thecondition[1]=type='affiliate'"></script>


instead of getting a banner which clicks to the affiliate I get -

<a target='new' href="http://click.linksynergy.com/fs-bin/click?id=DPvNfgPltNY&offerid=100462.10002080&type=4&subid=0"><IMG alt="1-800-FLOWERS.COM" border="0" src="http://a1516.g.akamai.net/f/1516/9236/1h/affiliate.1800flowers.com/flowers/graphics/logos/ban_logo_03n.gif"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=DPvNfgPltNY&bids=100462.10002080&type=4&subid=0">


Any suggestions?
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Sep 06, 2008 - 5:11 AM:

hai wrote:
The reason I wanted this js export to work is so I could pull the information from the affiliate code field I had created onto another page. Unfortunately, instead of displaying the rendered html I'm getting the actual code.

Any suggestions?


Sounds like the problem I had with my html fields. I have mine working now, although there are still problems, which Paul says he has fixed, so just waiting for the next update now.

However, still on JavaScript export... I use an external .js generated using the javascript export in the admin for this same purpose. I've now got around to trying it in V.5 but instead of the banner displaying I just get {CATTINYBANNER}

http://www.123club.co.uk/

My script to generate the toplist is:

exp_tinybanner|categories,rand(),5,ascending,tinybanner !='',,,0,0,0,0,0,0,,0
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted Sep 06, 2008 - 8:53 AM:

updated to 5.0.4 now I don't get anything, loaded the script url directly and got the following debug -


An error occoured at highaspirations.com/portal/...inks&thecondition[1]=type='affiliate' on 2008-09-06 15:47:11. Please relay this data to support. Error #2: 'mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given' in /html/portal/databases/mysqli.php on line 42. Debug info:
canviewownfulltrc`,`canviewallfulltrc` FROM wsn_membergroups

Load time so far: 0.17 seconds.



Query 5: SELECT `id`,`name`,`links`,`comments`,`time`,`usergroup`,`password`,`ip`,`totalhits`,`totalhitsin`,`email`,`validated`,`template`,`language`,`lastattempt`,`allowemail`,`signature`,`avatarname`,`stylesheet`,`allowuseremail`,`albumid`,`failedattempts`,`totalbytes`,`funds`,`notifyoflinks`,`lastvisit`,`timezone`,`rating`,`pmfolders`,`notifyofpms`,`acceptpms`,`cookieduration`,`banned`,`location`,`homepage`,`occupation`,`bio`,`aim`,`icq`,`msn`,`yahoo`,`inactive`,`timeonline`,`totalpms`,`buddies`,`ignored`,`isonline`,`acceptims`,`adminpermissions`,`referrer`,`groupreverttime`,`grouprevertto`,`moderationpm`,`secondarygroups`,`linksperpage`,`commentsperpage`,`shouts`,`customtitle`,`shoutban`,`topicbans`,`forumbans`,`visibility`,`birthdate`,`lastsession`,`interests`,`posteditor`,`forumaccess`,`pmpopup`,`pmnotify`,`modnotes`,`guestnotes`,`salt`,`lastmodnote`,`newpms`,`imflag`,`orderalbums`,`lastguestnote`,`autosubscribe`,`notifymethod`,`showavatars`,`showsigs`,`warninglevel`,`topics`,`posts`,`chatcolor`,`traderrating`,`invitessent`,`validatedemail`,`calsub`,`macros`,`guestnotify`,`keychecktime`,`notifykeywords`,`autosubscribepost`,`blogrss`,`positivepct`,`notifytrader`,`inactiveemail` FROM wsn_members WHERE id = '1' AND validated = 1

Load time so far: 0.19 seconds.



Query 6: SELECT `id`,`to`,`subject`,`message`,`headers`,`replacement`,`mime` FROM wsn_email WHERE timesent=0 AND inprogress=0 ORDER BY id ASC LIMIT 0,10

Load time so far: 0.29 seconds.



Number of rows is 0

Query 7: SELECT `` FROM rtable WHERE 1=1 AND (r) ORDER BY title ASC LIMIT 0,r

Load time so far: 0.36 seconds.


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'r' at line 1

document.write('');
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 07, 2008 - 11:07 AM:

Fixed the fix for 5.0.5 (sigh). Working for me at the moment.
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted Sep 09, 2008 - 5:31 PM:

This works perfectly now. Thank you.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.