PDA

View Full Version : Photopost subscriptions


t46383
December 16th, 2008, 07:05 PM
I've added subscriptions via the admin panel.
However, when I click on "Add/Edit Subscriptions", the subscriptions I've added don't appear.
Nor do Subscription options appear to a logged-in regular user.

Chuck S
December 16th, 2008, 08:06 PM
http://www.photopost.com/forum/1236062-post2.html

t46383
December 16th, 2008, 11:16 PM
It now lists the subscriptions, by name, but they are not hyperlinked as I would have expected -- to permit modification. The last two lines are subscriptions I added, followed by blank brackets. At "Add/Edit subscriptions I see the following:


[] []
[] []
[] []
[] []
Silver [] []
Gold [] []

Chuck S
December 17th, 2008, 07:48 AM
In adm-inc.php in the subli function make sure the $edit and delete lines the language strings and edit and delete not editthis deletethis.


$delete = "<a href=\"{$Globals['maindir']}/adm-misc.php?admact=admsubscribe&amp;ppaction=delsub&subid=$mainid\">{$Globals['pp_lang']['delete']}</a>";
$edit = "<a href=\"{$Globals['maindir']}/adm-misc.php?admact=admsubscribe&amp;ppaction=editsub&subid=$mainid\">{$Globals['pp_lang']['edit']}</a>";

t46383
December 17th, 2008, 01:07 PM
Thanks -- that appears to have taken care of it.

Chuck S
December 17th, 2008, 03:33 PM
have a great day let us know if we can be of further assistance.

t46383
December 17th, 2008, 03:56 PM
Another issue:
While the subscription descriptions appear in the user profile page,
there is no link appearing in the column titled "order" (blank field).

Chuck S
December 17th, 2008, 04:04 PM
In the member.php file in this line change the language string from listsubs to order like so


<br /><b><a href="http://www.photopost.com/forum/general-discussion/{$Globals['maindir']}/subscriptions.php">{$Globals['pp_lang']['order']}</a></b><br /><br />

t46383
December 17th, 2008, 04:44 PM
I can't find that line in member.php
I did a search for "listsubs" and it didn't appear.
I also searched for "subscriptions.php" in the file and it didn't appear, either.

Chuck S
December 17th, 2008, 05:30 PM
sorry I meant profile template ;)

t46383
December 17th, 2008, 08:16 PM
I changed the profile template.
However, it appears there is still no way for a member to click on a link to subscribe.
I've attached a screen print from member's profile page which lists subscriptions.
Under the "order" column, I would expect to see a hyperlink of some sort but there's nothing there.

Chuck S
December 17th, 2008, 08:54 PM
Are you sure you updated your language file then?

This is right in there


$Globals['pp_lang']['order'] = "Order";

t46383
December 17th, 2008, 09:10 PM
Yes, I've uploaded languages/english.php (as well as the others)
That line exists in the file.
"Order" appears as an option in the left menu of "profile" screen, but when you click on it, the various subscription options do not include a hyperlink to click on to subscribe.

Chuck S
December 17th, 2008, 10:06 PM
Not sure what you mean there dont see an issue with that your free to include a url and test login?

t46383
December 18th, 2008, 11:07 AM
(sitename)
username: test
password: test

Go to "profile"
Click on "order"
It shows subscriptions but no way for a registered user to choose one.

How does a user subscribe?
(There are no links to click on to subscribe)
Since admin panel includes a field for PayPal login, I had presumed there was some sort of routine to handle subscriptions.
(I.e., click on "subscribe", be routed to PayPaly to pay, then return)

Chuck S
December 18th, 2008, 11:11 AM
Place a clean template back in place for profile template in the download

Edit subscriptions template this line and change select to order


<span class="{$Style['small']}"><a href="http://www.photopost.com/forum/general-discussion/{$Globals['maindir']}/subscriptions.php?do=order&amp;subid={$subid[$x]}">{$Globals['pp_lang']['order']}</a></span>



I gave you the wrong template

t46383
December 18th, 2008, 11:28 AM
That appears to have fixed it.
Thanks.

Chuck S
December 18th, 2008, 11:46 AM
yep knew what the issue was looking at your pic but had the wrong template in my head. ;)