Links Manager For OSC v0.20 released
#81
Posted 17 August 2003, 23:37
I think the file you are looking for is
/catalog/includes/languages/english/exchange_links_submit_process.php
Now for my question,
I think I have this installed correctly, the only problem I have found so far is in the Admin panel, Exchange Links => Links, rather than showing "Displaying x to x (of x customers)," it shows "TEXT_DISPLAY_NUMBER_OF_RECS"
I'm using 2.2 MS2 with Werner's modifications and changing tep_array_merge () to array_merge()
Carla
#82
Posted 18 August 2003, 00:42
Darn if that wasn't my next question. I have the same problem.
It really doesnt effect anything. It is just annoying. I saw another post with the same question but there was no answer.
Sorry. I wish I knew the answer. If I find out I will let you know.
AKA
Intrinsically Dazed And Confused!
#83
Posted 18 August 2003, 03:57
Congratulations on one fantastic contrib! This is just what I have been looking for!
I am having a slight problem though. I am using osc milestone 2.2 I got everything working just fine except the mailing part. I go to Admin=>Exchange Links=>Links and then into Edit. Down at the bottom there is a box that says "Send own link data". Correct me if Im wrong but by checking that box shouldnt it send out an email with your site info to the perspective user. That is to say the site that is going to link to you?
When I check that box nothing seems to happen.
Now if I delete the link and re-add it then an e-mail is sent out but it appears the email is comming from X-Link Mailingliste. How do I get my site info into that e-mail. Below is a sample of the e-mail:
Your Link Information has been stored in our database, but is
not yet activated. Please add a reciprocal link to your site
with the following content:
-------------------------------------------------------------
Titel der Seite: The Name of Your Shop goes here
<eot>
Website URL: http://www.yourshop.com/catalog
<eot>
Beschreibung: A detailed description of your shop, like you
wish it should appear at the link page.
<eot>
Name des Betreibers: Your name
<eot>
URL der Linkseite: http://www.yourshop.com/catalog/exchange_links.php
<eot>
Email Adresse: you@yourshop.com
<eot>
-------------------------------------------------------------
Thank you very much for your effort and take part in the
Link-Exchange Program
Please visit:
http://shop.laserpointer4u.de/catalog/link_mail.php
---------------
I have searched every file trying to find where this information is getting inserted into the email so I can edit it.
Any help in this matter would be greatly appreciated. Thanks.
AKA
Intrinsically Dazed And Confused!
#84
Posted 25 August 2003, 11:19
TEXT_DISPLAY_NUMBER_OF_RECS
I just added to admin/includes/languages/english.php
Quote
It doesnt get the record amount, but it looks a little better lol
Any real fix for this?
#85
Posted 25 August 2003, 11:24
Quote
code guru's would know what to do, its a feature I dont care to use, but im curious now
#86
Posted 25 August 2003, 11:36
It will say 'Displaying 1 to 1 (of 1 customers)'
go to exchange_links_links.php and modify line 459 (or so) to read:
Quote
Basically replace:
TEXT_DISPLAY_NUMBER_OF_RECS
with:
TEXT_DISPLAY_NUMBER_OF_CUSTOMERS
says customers rather than records, but it works!
#87
Posted 25 August 2003, 14:45
#88
Posted 26 August 2003, 23:12
To fix the bug where the link field is filled in when the poll is on the left hand side do the following:
In /includes/boxes/polls.php find the following
$url = tep_href_link('pollbooth.php', 'op=results&pollid='.$pollid);
$content = "<input type="hidden" name="pollid" value="".$pollid."">n";
$content .= "<input type="hidden" name="forwarder" value="".$url."">n";
$content .= "<tr class="polltitle"><td colspan="2">". $poll_details['polltitle'] . "</td></tr>";
and change it to
$url2 = tep_href_link('pollbooth.php', 'op=results&pollid='.$pollid);
$content = "<input type="hidden" name="pollid" value="".$pollid."">n";
$content .= "<input type="hidden" name="forwarder" value="".$url2."">n";
$content .= "<tr class="polltitle"><td colspan="2">". $poll_details['polltitle'] . "</td></tr>";
You can now have your poll on the left hand side without affecting the links script.
#89
Posted 27 August 2003, 02:41
Quote
You can find two calls to tep_array_merge ... both in the files in the admin folder. I think it's exchange_links_categories.php and exchange_links_links.php, if I remember right.
I like having the links ability here; some other ideas to add to this might be with the submission process; add into the admin panel some configuration options, such as where you want the links sent to, etc. Just some config options in general would be kinda useful.
It looks good though, so keep up your great work. It's complicated trying to dissect other people's code, like osC, with no comments! Ahh!
Thanks for the contribution, and thanks for this tip. Thnanks
ultrAslan - ultrAslan - ultrAslan
#90
Posted 27 August 2003, 06:28
Thanks again for this great piece of code.
One question about your instructions: is there a particular reason why you want us to place the code throughout the documents (for example 3 places you specify for the english.php). Can we just append all modifications at the end of the file?
Thanks,
mehmet.
ultrAslan - ultrAslan - ultrAslan
#91
Posted 27 August 2003, 09:46
Customer side:
After submitting a link.
The exchange_links_submit_success.php 'continue' button based on
<a href="' . $origin_href . '">
sends the user to the /catalog directory instead of /catalog/default.php
Although the continue button is working in other sections .???
#92
Posted 30 August 2003, 10:16
It details the exactl the same issue you have and contains a potential resolution.
#93
Posted 30 August 2003, 10:17
#94
Posted 05 September 2003, 21:05
I would like to add links via the Admin interface, enable them, then send the potential link partner an email letting them know I've added their link and request a reciprocal link with my info included. How would I accomplish this? I still want to keep the original code intact for instances when unsolicited link partners request a link....but I also want to be proactive, especially since many sites want to see THEIR link online before their add YOURS.
A simple email form, separate from the update and insert function would be desirable, along with a new field to record the date of the link request.
Anybody know how to do this?
Thanks
Lee
#95
Posted 15 September 2003, 04:23
http://www.elegantdepressionglass.com/test...hange_links.php
The admin section works, except for that line that say this:TEXT_DISPLAY_NUMBER_OF_RECS
The other problem I noticed when I try to submit a link from the links page the "continue" button towards the end doesn't go anywhere. It keeps me on the last page.
I have obviously misssed something in getting a catgeory and link to show up. I've gone through the install twice and can't find the problem. I am trying this on my test site before putting it in the live store. Any help is appreciated.
Edited by cindyd, 15 September 2003, 04:26.
#96
Posted 15 September 2003, 04:52
#99
Posted 17 September 2003, 14:12
cindyd, on Sep 15 2003, 04:23 AM, said:
http://www.elegantdepressionglass.com/test...hange_links.php
The admin section works, except for that line that say this:TEXT_DISPLAY_NUMBER_OF_RECS
The other problem I noticed when I try to submit a link from the links page the "continue" button towards the end doesn't go anywhere. It keeps me on the last page.
I have obviously misssed something in getting a catgeory and link to show up. I've gone through the install twice and can't find the problem. I am trying this on my test site before putting it in the live store. Any help is appreciated.
http://www.igotresidual.com/shop/catalog/exchange_links.php
The admin section works, except for that line that say this:TEXT_DISPLAY_NUMBER_OF_RECS
I have obviously misssed something in getting a catgeory and link to show up. I've gone through the install twice and can't find the problem. Any help is appreciated.
#100
Posted 20 September 2003, 23:08
<!-- Begin own link info -->
<?php
if ($languages_id == 1){
?>
<BR><FORM NAME="BANNER">
<TABLE ALIGN="CENTER" WIDTH="100%" BORDER="0" CELLPADDING="2" CELLSPACING="0">
<TR>
<TD ALIGN="CENTER" class="infoBoxHeading">Please, copy one of the following codes and add to your html page:</TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=10" border="0" alt="Pro Laser Pointer"><br>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Pro Laser Pointer -->
<a href="http://shop.laserpointer4u.de/catalog/default.php" target="_blank"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=10" border="0" alt="Pro Laser Pointer"></a>
<!-- End partner link Pro Laser Pointer -->
</TEXTAREA></TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=8" border="0" alt="Pro Laser Pointer">
<br>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Pro Laser Pointer-->
<a href="http://shop.laserpointer4u.de/catalog/default.php" target="_blank"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=8" border="0" alt="Pro Laser Pointer"></a>
<!-- End partner link Pro Laser Pointer -->
</TEXTAREA></TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=7" border="0" alt="Pro Laser Pointer"><br>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Pro Laser Pointer -->
<a href="http://shop.laserpointer4u.de/catalog/default.php?&affiliate_banner_id=7" target="_blank"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=7" border="0" alt="Pro Laser Pointer"></a>
<!-- End partner link Pro Laser Pointer -->
</TEXTAREA></TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><U><B>Textlink</B></U><br>
<BLOCKQUOTE>Green and red laser pointers for presentation and industry. We also offer better visible 635nm laser pointer. Quick delivery - worldwide dispatch!</BLOCKQUOTE>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Pro Laser Pointer -->
<TABLE Align="CENTER">
<TR>
<TD>
<a href="http://shop.laserpointer4u.de/catalog/default.php" target="_blank">Green and red laser pointers for presentation and industry. We also offer better visible 635nm laser pointer. Quick delivery - worldwide dispatch!</a></TD>
</TR>
</TABLE>
<!-- End partner link Pro Laser Pointer -->
</TEXTAREA></TD>
</TR>
</TABLE>
</FORM>
<?php
}
?>
<?php
if ($languages_id == 2){
?>
<BR><FORM NAME="BANNER">
<TABLE ALIGN="CENTER" WIDTH="100%" BORDER="0" CELLPADDING="2" CELLSPACING="0">
<TR>
<TD ALIGN="CENTER" class="infoBoxHeading">Bitte tragen Sie auf Ihrer Link-Seite einen der folgenden Codes ein:</TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=10" border="0" alt="Profi Laser Pointer"><br>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Profi Laser Pointer -->
<a href="http://shop.laserpointer4u.de/catalog/default.php" target="_blank"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=10" border="0" alt="Profi Laser Pointer"></a>
<!-- End partner link Profi Laser Pointer -->
</TEXTAREA></TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=8" border="0" alt="Profi Laser Pointer">
<br>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Profi Laser Pointer -->
<a href="http://shop.laserpointer4u.de/catalog/default.php" target="_blank"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=8" border="0" alt="Profi Laser Pointer"></a>
<!-- End partner link Profi Laser Pointer -->
</TEXTAREA></TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=7" border="0" alt="Profi Laser Pointer"><br>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Profi Laser Pointer -->
<a href="http://shop.laserpointer4u.de/catalog/default.php?&affiliate_banner_id=7" target="_blank"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=7" border="0" alt="Profi Laser Pointer"></a>
<!-- End partner link Profi Laser Pointer -->
</TEXTAREA></TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><U><B>Textlink</B></U><br>
<BLOCKQUOTE>
Grüne und rote Laserpointer für Präsentation und Industrie. Wir bieten auch die besser sichtbaren 635nm Laserpointer an. Schnelle Lieferung - Weltweiter Versand!</BLOCKQUOTE>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Profi Laser Pointer -->
<TABLE Align="CENTER">
<TR>
<TD><a href="http://shop.laserpointer4u.de/catalog/default.php" target="_blank">Grüne und rote Laserpointer für Präsentation und Industrie. Wir bieten auch die besser sichtbaren 635nm Laserpointer an. Schnelle Lieferung - Weltweiter Versand!</a></TD>
</TR>
</TABLE>
<!-- End partner link Profi Laser Pointer -->
</TEXTAREA></TD>
</TR>
</TABLE>
</FORM>
<?php
}
?>
<?php
if ($languages_id == 3){
?>
<BR><FORM NAME="BANNER">
<TABLE ALIGN="CENTER" WIDTH="100%" BORDER="0" CELLPADDING="2" CELLSPACING="0">
<TR>
<TD ALIGN="CENTER" class="infoBoxHeading">Usted se coloca por favor a uno de los códigos siguientes en su lado del acoplamiento:</TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=10" border="0" alt="Indicador profesional del laser"><br>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Indicador profesional del laser -->
<a href="http://shop.laserpointer4u.de/catalog/default.php" target="_blank"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=10" border="0" alt="Indicador profesional del laser"></a>
<!-- End partner link Indicador profesional del laser -->
</TEXTAREA></TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=8" border="0" alt="Indicador profesional del laser">
<br>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Indicador profesional del laser -->
<a href="http://shop.laserpointer4u.de/catalog/default.php" target="_blank"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=8" border="0" alt="Indicador profesional del laser"></a>
<!-- End partner link Indicador profesional del laser -->
</TEXTAREA></TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=7" border="0" alt="Indicador profesional del laser"><br>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Indicador profesional del laser -->
<a href="http://shop.laserpointer4u.de/catalog/default.php?&affiliate_banner_id=7" target="_blank"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=7" border="0" alt="Indicador profesional del laser"></a>
<!-- End partner link Indicador profesional del laser-->
</TEXTAREA></TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><U><B>Textlink</B></U><br>
<BLOCKQUOTE>Los indicadores verdes y rojos del laser para la presentación y la industria. Ofrecemos también los 635nm visibles mejores a los indicadores del laser. ¡Fuente de los broches de presión - envío mundial!</BLOCKQUOTE>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Indicador profesional del laser -->
<TABLE Align="CENTER">
<TR>
<TD><a href="http://shop.laserpointer4u.de/catalog/default.php" target="_blank">Los indicadores verdes y rojos del laser para la presentación y la industria. Ofrecemos también los 635nm visibles mejores a los indicadores del laser. ¡Fuente de los broches de presión - envío mundial!</a></TD>
</TR>
</TABLE>
<!-- End partner link Indicador profesional del laser -->
</TEXTAREA></TD>
</TR>
</TABLE>
</FORM>
<?php
}
?>
<?php
if ($languages_id == 4){
?>
<BR><FORM NAME="BANNER">
<TABLE ALIGN="CENTER" WIDTH="100%" BORDER="0" CELLPADDING="2" CELLSPACING="0">
<TR>
<TD ALIGN="CENTER" class="infoBoxHeading">Veuillez enregistrer sur votre côté de lien des des codes suivants:</TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=10" border="0" alt="Professionnel laser pointeur"><br>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Professionnel laser pointeur -->
<a href="http://shop.laserpointer4u.de/catalog/default.php" target="_blank"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=10" border="0" alt="Professionnel laser pointeur"></a>
<!-- End partner link Professionnel laser pointeur-->
</TEXTAREA></TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=8" border="0" alt="Professionnel laser pointeur">
<br>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Professionnel laser pointeur -->
<a href="http://shop.laserpointer4u.de/catalog/default.php" target="_blank"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=8" border="0" alt="Professionnel laser pointeur"></a>
<!-- End partner link Professionnel laser pointeur -->
</TEXTAREA></TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=7" border="0" alt="Professionnel laser pointeur"><br>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Professionnel laser pointeur -->
<a href="http://shop.laserpointer4u.de/catalog/default.php?&affiliate_banner_id=7" target="_blank"><img src="http://shop.laserpointer4u.de/catalog/affiliate_show_banner.php?affiliate_banner_id=7" border="0" alt="Professionnel laser pointeur"></a>
<!-- End partner link Professionnel laser pointeur -->
</TEXTAREA></TD>
</TR>
<TR>
<TD ALIGN="CENTER" class="infoBoxContent"><U><B>Textlink</B></U><br>
<BLOCKQUOTE>
Pointeurs de laser verts et rouges pour présentation et l'industrie. Nous offrons aussi le 635nm mieux visible à des pointeurs de laser. Livraison rapide - expédition mondiale!</BLOCKQUOTE>
<TEXTAREA NAME="" ROWS="5" COLS="80" READONLY><!-- Begin partner link Professionnel laser pointeur -->
<TABLE Align="CENTER">
<TR>
<TD><a href="http://shop.laserpointer4u.de/catalog/default.php" target="_blank">Pointeurs de laser verts et rouges pour présentation et l'industrie. Nous offrons aussi le 635nm mieux visible à des pointeurs de laser. Livraison rapide - expédition mondiale!</a></TD>
</TR>
</TABLE>
<!-- End partner link Professionnel laser pointeur -->
</TEXTAREA></TD>
</TR>
</TABLE>
</FORM>
<?php
}
?>
<!-- End own link info -->
if you look at the line if ($languages_id == 1){
1 is for english
2 is for german
3 is for spanish
4 is for french
i still have not been able to send the link info to a client from the admin side yet when you appove a link the email does not get sent not sure what the cause of this is yet.
you view the changes i made at www.myweb-host2.com/catalog/ and click on the different languages to see














