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)

Vman 05-24-2004 04:18 PM

Ok, thanks!...Ill see what I can do....

monstergamer 05-25-2004 04:06 AM

Quote:

Originally Posted by SnowBot
When adding a new affil how can i auto add the

http://

In the box so that people dont have to add it?

Thanks for any help on this.

your talking about some thing like this > http://www.monstergamer.net/vb/affiliate.php?do=apply

when they go to apply for affiliation, it show the HTTP:// for them

SnowBot 05-25-2004 04:47 AM

YES :) that is exactly what i was after :0

monstergamer 05-25-2004 06:28 AM

Quote:

Originally Posted by SnowBot
YES :) that is exactly what i was after :0

since i did not like how the apply page looked i changed it, your welcome to use it



in the affiliate_apply, REPLACE ALL WITH
PHP Code:

 $stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
 <
title>$vboptions[bbtitle] - vB AffilatesApply</title>
$headinclude
</head>
<
body>
$header
$navbar
<form action="affiliate.php?do=insert" method="post">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
    <
tr>
      <
td class="tcat"><b>Application</b>:</td>
    </
tr>
    <
tr>
      <
td class="alt1">Site Name:<input type="text" name="sitename" value="" maxlength="50" size="30"></td>
    </
tr>
    <
tr>
      <
td class="alt2">Site Url:
        <
input type="text" name="siteurl" value="http://" maxlength="255" size="50"></td>
    </
tr>
    <
tr>
      <
td class="alt1">Site Description:<br />
<
textarea name="desc" cols="50" rows="10"></textarea></td>
    </
tr>
    <
tr>
      <
td class="alt2">Button Url:<input type="text" name="button" value="http://" maxlength="150" size="50"></td>
    </
tr>
    <
tr>
      <
td class="alt1">Category:<select name="type"><optgroup label="Categories/Types">
$typebits
</optgroup>
</
select></td>
    </
tr>
    <
tr>
      <
td class="alt2">Webmaster Email:<input type="text" name="email" value="" maxlength="250" size="50"></td>
    </
tr>
    <
tr>
      <
td class="tcat">&nbsp;<input type="submit" value="Submit"></td>
    </
tr>
</
table>
</
form>
<
br />
$footer
</body>
</
html


SnowBot 05-25-2004 09:44 AM

Now that does look much better, i appreciate that.

THANKS :)

trackpads 06-04-2004 05:40 AM

I used this to organize the Affiliate templates in the template manager. It makes it look a lot better.

This is a GREAT Hack btw!!!!!


In includes/adminfunctions_template.php:

Find:

PHP Code:

'subscription' => $vbphrase['group_paid_subscriptions'], 


Add BELOW:

PHP Code:

'affiliate' => 'VB Affiliates'


Chris Gwynne 06-16-2004 08:18 PM

Not sure if you're still providing support for the hack, lets hope you are.

When I try to run this query
Code:

INSERT INTO phrase (languageid,varname,text,phrasetypeid) VALUES ('-1', 'saved_affiliate_x_successfully', '<i>{1}\'s</i> has been updates!', '9000');
INSERT INTO phrase (languageid,varname,text,phrasetypeid) VALUES ('-1', 'deleted_affiliate_x_successfully', '<i>{1}</i> has been deleted!', '9000');
INSERT INTO phrase (languageid,varname,text,phrasetypeid) VALUES ('-1', 'deleted_affiliate_x_unsuccessfully', '<i>{1}</i> was not deleted due to your choice selection.', '9000');
INSERT INTO phrase (languageid,varname,text,phrasetypeid) VALUES ('-1', 'inserted_affiliate_x_successfully', '<i>{1}</i> has been successfully added to the data base.', '9000');
INSERT INTO phrase (languageid,varname,text,phrasetypeid) VALUES ('-1', 'inserted_affiliate_x_unsuccessfully', 'This affiliates could not be added to the database because you either did not enter an affiliate name or an affiliate url or an affiliate email.', '9000');
INSERT INTO phrase (languageid,varname,text,phrasetypeid) VALUES ('-1', 'saved_affiliate_settings_successfully', 'Settings for Affiliates Addon Updated.', '9000');
INSERT INTO phrase (languageid,varname,text,phrasetypeid) VALUES ('-1', 'updated_affiliate_type_successfully', '<i>{1}</i> was updated successfully.', '9000');
INSERT INTO phrase (languageid,varname,text,phrasetypeid) VALUES ('-1', 'updated_affiliate_type_unsuccessfully', 'The type was <u>not</u> updated because the types name was left blank.', '9000');
INSERT INTO phrase (languageid,varname,text,phrasetypeid) VALUES ('-1', 'saved_affiliate_type_unsuccessfully', 'This type/category was not added to the database due to the name of this type/category not being filled in.', '9000');
INSERT INTO phrase (languageid,varname,text,phrasetypeid) VALUES ('-1', 'saved_affiliate_type_successfully', '<i>{1}</i> was added to the database successfully.', '9000');
INSERT INTO phrase (languageid,varname,text,phrasetypeid) VALUES ('0', 'approved_affiliate_x_successfully', '<i>{1}</i> has been approved successfully and an email has been dispatched to its admin\'s email.', '9000');

I get this error

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: 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 ';
INSERT INTO phrase (languageid,varname,text,phrasetypeid) VA


Any help with this please?

Regards,
Chris

joeychgo 06-16-2004 09:19 PM

problem I noticed.....

ANYONE can vote and vote as often as the like, so it makes the rating system ineffective

AN-net 06-19-2004 11:25 AM

chris im not sure what the problem is because i dont know which line it is. um can you run each insert one singally.

joey that means the delay feature is not working for u.

Ronso Rage 06-19-2004 04:05 PM

Installed with no probs and seems to be working fine thanks

*RR clicks install*


All times are GMT. The time now is 09:41 PM.

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.01315 seconds
  • Memory Usage 1,772KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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