Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Showing fanlisting stats
_Justine
post Dec 10 2008, 10:03 PM
Post #1


Rank #1: Newbie
*

Group: Members
Posts: 10
Joined: 1-September 07
From: Poland
Member No.: 11,390



I need help in customizing statistics for one of my fanlistings. Is it possible to show stats in 2 places? Here's the fanlisting, I'd better explain it on the example.
As you see there are stats in the layout header and too little place for showing new members, so I'd like to show only them in content. I figured out that there probably should be a copy to show_stats.php that will have another template included and showing only the think I want. But it doesn't work since I don't know where's the statstemplate.txt file included. Is it at all possible to do what I want?


--------------------
Reaching, searching for something untouched
Hearing voices of the Never-Fading calling
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LouiseDK
post Dec 11 2008, 06:43 PM
Post #2


Rank #5: Obsessed
Group Icon

Group: CodeGrrl Staff
Posts: 2,600
Joined: 7-February 04
From: Denmark
Member No.: 774



If I am not mistaken, the setup of your fanlisting info is setup in the administration panel, meaning you can't have 2 different templates. The template is inserted into the database, which is why you cannot find it smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
_Justine
post Dec 12 2008, 11:57 PM
Post #3


Rank #1: Newbie
*

Group: Members
Posts: 10
Joined: 1-September 07
From: Poland
Member No.: 11,390



As far as I know database only stores the information it's not important where and how many times I want to show it. There must be a way to modify the script so that there could be 2 templates. Templates are in .txt file so that's the matter of adding one and defining it somewhere in the script, the question is: where?

I may be wrong though. I really know little about PHP and MySQL only the things I learned modifying scripts a bit.


--------------------
Reaching, searching for something untouched
Hearing voices of the Never-Fading calling
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LouiseDK
post Dec 14 2008, 06:20 PM
Post #4


Rank #5: Obsessed
Group Icon

Group: CodeGrrl Staff
Posts: 2,600
Joined: 7-February 04
From: Denmark
Member No.: 774



The database stores both the info on the fanlisting, but also all templates:
- affiliates
- members
- stats

and so on. So the script will have to be edited in quite a few files to work with 2 different templates, simply because all codes that pick up info from the "owned" table probably should be modified.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

- Lo-Fi Version Time is now: 29th July 2010 - 11:24 AM