vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB Affiliates v.2 (https://vborg.vbsupport.ru/showthread.php?t=63044)

GamerJunk.net 04-11-2004 02:18 AM

Woohoo installed! Awesome!

Pitman 04-11-2004 04:01 AM

Quote:

Originally Posted by Pitman
I don't think mine is sending the emails for approval. Does it send the email at a certain time or something? If not mine isn't working right :(

I also modified it a little, and I noticed that the rating system doesn't work now... the link to the site is http://www.game-dog.com/forums/link.php?do=listlinks if anyone can help.

AN-net 04-11-2004 04:11 AM

what did you change?

Pitman 04-11-2004 04:39 AM

Quote:

Originally Posted by AN-net
what did you change?

Well, mostly I added the same features and functions that are in the listlinks to the toplinks.

Pitman 04-11-2004 04:41 AM

It would also be great if you could add a search feature for it, like the member list is mostly, with A-Z and it searches for links that begin with that. Also a search feature for each catagory, maybe as another module. Along with text searches, again possibly as a module.

Edit: I forgot to mention that I converted it to be a links system instead of an affiliate hack

Pitman 04-11-2004 05:01 AM

Contents of link_listbits:
HTML Code:

<tr>
<td class="alt1" align="$stylevar[left]"><if condition="$show[button]"><if condition="$valid"><a href="link.php?do=redirect&u=$link[siteurl]&a=$link[link_id]"><img src="$link[buttonurl]" border="0" /></a><br /><else /><a href="link.php?do=redirect&u=$link[siteurl]&a=$link[link_id]"><img src="$stylevar[imgdir_editor]/unlink.gif" alt="Button N/A" border="0" /><a/><br /></if></if>
<a href="link.php?do=redirect&u=$link[siteurl]&a=$link[link_id]"><i><b>$link[sitename]</b></i></a><if condition="$show['disclaimer']">*</if><if condition="$show[report]"><a href="link.php?do=report&a=$link[link_id]" title="Report a broken url/link." target="_self"><img src="$stylevar[imgdir_button]/report.gif" border="0" /></a></if><br />
<dfn>$link[desc]</dfn></td>
<td class="alt2" align="center">$link[name]</td>
<td class="alt1" align="center">$link[clicksin]</td>
<td class="alt2" align="center">$link[clicksout]</td>
<td class="alt1" align="center"><img src="$stylevar[imagesfolder]/rating/rating_$rating.gif" /><br /><div class="smallfont"><dfn>Total Votes: $link[totalvotes]</dfn></div></td>
<if condition="$show['rate']">
<td class="alt2" align="center"><form action="link.php?do=vote" method="post">
<input type="hidden" name="a" value="$link[link_id]"><select name="rating"><optgroup label="ratings">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</optgroup>
</select>
<input type="submit" value="Rate" class="button">
</form>
</td>
</if>
</tr>


AN-net 04-11-2004 05:12 AM

problem solved. if anyone is experiencing any kind of problems with the voting/rating feature. find this line in your affiliate.php:
PHP Code:

if(empty($a) OR empty($rating)){ 

replace it with this:
PHP Code:

if(empty($_POST['a']) OR empty($_POST['rating'])){ 


Pitman 04-11-2004 05:15 AM

Quote:

Originally Posted by AN-net
problem solved. if anyone is experiencing any kind of problems with the voting/rating feature. find this line in your affiliate.php:
PHP Code:

if(empty($a) OR empty($rating)){ 

replace it with this:
PHP Code:

if(empty($_POST['a']) OR empty($_POST['rating'])){ 


Thanks man... that works perfectly :)

Bryan Ex 04-13-2004 02:50 AM

Installed without problems... thanks very much for your time and effort on this AN-net.

One suggestion and one question - I have mine set to require approval of new links and I finding I'm digging through multiple pages in admincp just to check for new pending submissions. What would be very helpful is a separate "awaiting approval" list so I know right away if there's anything new. I was also wondering about the "active status" as it seems to default to no on all new submissions. Does this change automatically the first time the link is used? If not, where can I change them to default to active: yes so I don't have to edit each one after approving them.

If I'm missing a better way of doing things please let me know.

Thanks very much.

AN-net 04-13-2004 03:44 AM

do you mean the active status or the approval status?

thank you for the suggestion, i might consider that for as an addon to this hack(since i dont plan on releasing a new version for awhile).


All times are GMT. The time now is 08:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01189 seconds
  • Memory Usage 1,760KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete