New In-forum Feature
#1
Posted 14 August 2004 - 05:43 PM
my suggestion is you alter the PHP to get the first post of each thread (or even the first line) via altering the mysql query. then it would be displayed via editing the anchor to be as follows
<a href="link" title="first line of the post going here.....">
then all we would have to do is hover over it to get a taster.
NB. to increase the chances of this getting through, i will offer step-by-step instructions to edit it, should you require them.
#2
Posted 15 August 2004 - 12:52 AM
it would be a fairly big bit of code to add on, and would have to go on all the skin files etc, so i'm not going to do it
#3
Posted 15 August 2004 - 01:50 PM
Yes, exactly like vB.like in vbulletin, i don't beleive there is a mod for ibp that does that when you hover over the thread name.
it would be a fairly big bit of code to add on, and would have to go on all the skin files etc, so i'm not going to do it
The edit is not one that would be required across skin files, its a simple edit in one file.
its a shame you dont want to do it
Also, its a shame you havent put a "donate towards getting the Invision arcade for the forum" button on the donate page
#4
Posted 15 August 2004 - 04:20 PM
#6
Posted 23 August 2004 - 05:09 PM
AFAIK of the way IPB is coded, all the retrieval code comes into one file which is included within the skins at the location the results are desired, and a style sheet is included to specifiy image locations etc. and colors.simple edit in 1 file? i find that odd, but fair enough, i've not looked into detail how the forum was coded. what is the simple edit?
anyway, in the index.php file, ctrl-f for the word "if" until you get something like this
if (HTTP_GET_VARS["showforum"])
(it may have been saved intoa variable earlier, i havent accounted for that. as you have vb programming knowledge, youll find the assignment syntax to be highly similar, but there are no declarations.)
anyway, i digress
within that block (indicated by { and } ) find the statement that says
mysql_query blah blah here
anyway, take note of the variable it asks for.
now open up mysql
issue the following command
show databases;
it will list the databases
find the one that would mostapply to invision, its probably called "IPB"
use IPB; list tables;
find the one that applies to threads, its probably called "threads"
describe threads;
it will list the variables being held in the table.
there should be a variable named something like forum, or parent
if you find that then thats fine, staright to editing the PHP
if not, post back here. its also be useful if you posted output from the following commands
list tables; (when your in the IPB database) describe forums; describe threads;
Whatever you get, post back here and ill post the appropriate php code.
#7
Posted 23 August 2004 - 05:10 PM
I'm a pro, expect me to be goodBecareful here JLH.. You may have met your match!
-runs to the hills for fear of a bloody fight-
Or no-one would hire me
#8
Posted 23 August 2004 - 06:16 PM
easier if you just download IPB from the website (it's free) and look at the source code yourself
#9
Posted 24 August 2004 - 10:09 AM
No one does hire you.I'm a pro, expect me to be goodBecareful here JLH.. You may have met your match!
-runs to the hills for fear of a bloody fight-
Or no-one would hire me
#10
Posted 24 August 2004 - 05:04 PM
#11
Posted 25 August 2004 - 09:52 AM
I just got hired to make a multiplayer Poker game (in PHP of course)
And I do not copy other people code and pass it off as my own.
Nor was it a tutorial, i spent ten minutes typing it all out AAMOF
#12
Posted 25 August 2004 - 09:57 AM
Edited by Prophet, 25 August 2004 - 09:57 AM.
#13
Posted 25 August 2004 - 11:29 AM
and who cares how much it is, its something
#14
Posted 25 August 2004 - 12:47 PM
#15
Posted 25 August 2004 - 01:03 PM
carry on, i want to hear those words...
#16
Posted 25 August 2004 - 01:10 PM
Back into the shadows once again...
#18
Posted 25 August 2004 - 02:04 PM
PHP resembles Java syntax I suppose, but the commands are fairly different.
I was gonna write the prog in perl (my native programming tongue) but my friends site ran so much faster when he converted it to php i decided to write it in that instead (as i have a good working knowledge of both languages, although perl even more)
So there we are.
I didnt realise you programmed java, Pandi?
#19
Posted 25 August 2004 - 02:51 PM
ASP forums are usually used on webservers that don't support PHP, and they are terrible. VB with HTML, are you referring to VB Script, which is sometimes used in websites, but i don't believe it's commonly used.
Java can make windows applications, as well as web applications, but i don't think PHP is powerful enough to make windows applications.
#20
Posted 25 August 2004 - 03:36 PM
java however can be used for pretty much anything, however isn't that fast compared to a native language like perl/vb/c/.net
#21
Posted 25 August 2004 - 04:30 PM
I don't know html. I make VB programs for people who use it in ASP. And seeing as PHP does the same as ASP i simply wondered if they used the same language...Sorry angelus, but now you really do look like a retard. even an unexperienced web-coder like myself knows well that PHP is nothing like ASP. just check out some of the ASP forums compared to PHP forums.
ASP is like VB with HTML? lmao!
And yes exactly, ASP is a html page with VB coding in it. Only thing that can't be done is messageboxes with VB seeing as they would pop up on the server side instead of the users side.
Edited by Angelus, 25 August 2004 - 04:32 PM.
Back into the shadows once again...
#22
Posted 25 August 2004 - 04:33 PM
altho technically it converts it to c++ and compiles it, its near enough a compiler. meh.
java is 1/20th the speed of C++ , but that is made up for by its portability and its ease of learning
.Net is slow, despite what microsoft say, its a similar technology to Java, just a different set of languages.
perl is btw not compiled, it is interpreted, altho as per php, a compiler or translate-then-compile-r does exist, but its still a fair bit slower than writing raw C++, perhaps it doesnt translate it into efficient code?
oh, and vb is slow too but its ease of use and learning makes it widely suitable, and I tend to write many vb programs and few C++ or c ones. (c i generally only use on my linux pc, the gcc c++ addin is pretty crap )
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users